package Com.HupochuanAdmin.Uil.Do;

import java.util.List;

import Com.Hupochuan.Uil.Servlet.DoRunServlet;
import Com.Hupochuan.Vo.SourceMode;
import Com.Hupochuan.Vo.SourceType;
import Com.HupochuanAdmin.Dal.Tab.SourceModeTab;
import Com.HupochuanAdmin.Dal.Tab.SourceTypeTab;
import Com.Tester.Tester;

@SuppressWarnings("serial")
public class AddMovieDo extends DoRunServlet{
	public void doRun(){
		
		//打印测试
		Tester.print("打印测试 - AddMovieDo");
		
		//获得数据
		List<SourceType> sourceTypeList = SourceTypeTab.getObject().findSourceTypeList();
		List<SourceMode> sourceModeList = SourceModeTab.getObject().findSourceModeList();
		
		//设置数据
		this.getDoTool().setAttr("sourceTypeList", sourceTypeList);
		this.getDoTool().setAttr("sourceModeList", sourceModeList);
		
		//转发jsp页面
		this.getDoTool().forward("/jsp/admin/addMovie.jsp");
	}
}
